package cn.gailvlun.gll.net.base.profile;

import cn.gailvlun.gll.net.token.Authorization;
import cn.gailvlun.gll.net.ListRes;
import cn.gailvlun.gll.net.base.Profile;

import io.reactivex.Observable;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.PUT;
import retrofit2.http.Query;



public interface ProfileService {

    
    @Authorization
    @PUT("profile/")
    Observable<Profile> modifyProfile(@Body AddProfileReq addProfileReq);

    
    @Authorization
    @GET("profile/")
    Observable<ListRes<Profile>> getProfileByKeyword(@Query("keyword") String keyword);

    
    @Authorization
    @GET("profile/")
    Observable<Profile> getProfileById(@Query("id") int id);

    
    @Authorization
    @POST("profile/")
    Observable<Profile> addProfile(@Body AddProfileReq addProfileReq);

}
